<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Java开发入门指南</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        /* Hero Section */
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        /* 首字下沉 */
        .drop-cap::first-letter {
            float: left;
            font-size: 4rem;
            line-height: 3rem;
            padding-right: 0.5rem;
            margin-top: 0.5rem;
            font-weight: 700;
            color: #667eea;
        }
        
        /* 代码块样式 */
        .code-block {
            background: #1e1e1e;
            color: #d4d4d4;
            border-radius: 0.75rem;
            padding: 1.5rem;
            overflow-x: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            position: relative;
        }
        
        .code-block::before {
            content: '';
            position: absolute;
            top: 0.75rem;
            left: 1rem;
            width: 0.75rem;
            height: 0.75rem;
            background: #ff5f56;
            border-radius: 50%;
            box-shadow: 1.25rem 0 0 #ffbd2e, 2.5rem 0 0 #27c93f;
        }
        
        /* 卡片悬停效果 */
        .hover-card {
            transition: all 0.3s ease;
        }
        
        .hover-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }
        
        /* 步骤编号样式 */
        .step-number {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            flex-shrink: 0;
        }
        
        /* 引用样式 */
        .quote-box {
            border-left: 4px solid #667eea;
            background: rgba(102, 126, 234, 0.05);
            padding: 1.5rem;
            border-radius: 0 0.5rem 0.5rem 0;
            position: relative;
        }
        
        .quote-box::before {
            content: '\f10d';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: -0.5rem;
            left: 1rem;
            font-size: 2rem;
            color: #667eea;
            opacity: 0.2;
        }
        
        /* 图片样式 */
        .content-image {
            border-radius: 0.75rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }
        
        .content-image:hover {
            transform: scale(1.02);
        }
        
        /* Mermaid 图表样式 */
        .mermaid {
            background: white;
            padding: 2rem;
            border-radius: 0.75rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        /* 滚动动画 */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeIn 0.8s ease forwards;
        }
        
        @keyframes fadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 标题装饰 */
        .section-title {
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -0.5rem;
            left: 0;
            width: 3rem;
            height: 0.25rem;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20">
        <div class="container mx-auto px-6 text-center">
            <h1 class="text-5xl md:text-6xl font-bold mb-6 fade-in">
                <i class="fas fa-code mr-4"></i>Java开发入门指南
            </h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90 fade-in" style="animation-delay: 0.2s">
                从零开始，掌握Java编程的第一步
            </p>
            <div class="flex justify-center space-x-8 text-lg fade-in" style="animation-delay: 0.4s">
                <div><i class="fas fa-laptop-code mr-2"></i>开发环境搭建</div>
                <div><i class="fas fa-rocket mr-2"></i>第一个程序</div>
                <div><i class="fas fa-globe mr-2"></i>跨平台特性</div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="container mx-auto px-6 py-12">
        
        <!-- Notepad++ 安装 -->
        <section class="mb-16 fade-in">
            <div class="bg-white rounded-2xl shadow-xl p-8 hover-card">
                <h2 class="text-3xl font-bold mb-6 section-title">
                    <i class="fas fa-tools text-purple-600 mr-3"></i>安装开发工具
                </h2>
                
                <div class="grid md:grid-cols-2 gap-8 mt-8">
                    <div>
                        <h3 class="text-xl font-semibold mb-4 text-gray-800">
                            <i class="fas fa-file-code text-purple-500 mr-2"></i>Notepad++ 简介
                        </h3>
                        <p class="text-gray-600 leading-relaxed drop-cap">
                            Notepad++（简称NPP）是一款免费、开源的文本编辑器，它支持多种编程语言，具有语法高亮、自动完成、括号匹配、分屏编辑等功能。Notepad++是许多开发人员和程序员首选的文本编辑工具，因为它轻巧、功能强大、易于使用。
                        </p>
                        <div class="mt-6">
                            <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1707374753277-2c116a5b-2804-42a5-b227-53f1d0b606c1.png" 
                                 alt="Notepad++ Logo" 
                                 class="content-image mx-auto">
                        </div>
                    </div>
                    
                    <div>
                        <h3 class="text-xl font-semibold mb-4 text-gray-800">
                            <i class="fas fa-download text-purple-500 mr-2"></i>主要特性
                        </h3>
                        <div class="space-y-3">
                            <div class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <div>
                                    <strong>多语言支持：</strong>支持超过50种编程语言的语法高亮
                                </div>
                            </div>
                            <div class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <div>
                                    <strong>轻量级：</strong>启动速度快，占用资源少
                                </div>
                            </div>
                            <div class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <div>
                                    <strong>插件系统：</strong>丰富的插件生态，可扩展功能
                                </div>
                            </div>
                            <div class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-3"></i>
                                <div>
                                    <strong>免费开源：</strong>完全免费，源代码开放
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 安装步骤 -->
        <section class="mb-16 fade-in">
            <div class="bg-white rounded-2xl shadow-xl p-8 hover-card">
                <h3 class="text-2xl font-bold mb-8">
                    <i class="fas fa-list-ol text-purple-600 mr-3"></i>安装 Notepad++ 步骤
                </h3>
                
                <div class="space-y-6">
                    <!-- 步骤1-5 -->
                    <div class="grid md:grid-cols-2 gap-6">
                        <div class="flex items-start space-x-4">
                            <div class="step-number">1</div>
                            <div>
                                <h4 class="font-semibold mb-2">下载 Notepad++</h4>
                                <p class="text-gray-600">前往 Notepad++ 的官方网站 
                                    <a href="https://notepad-plus-plus.org/downloads/" class="text-purple-600 hover:underline">
                                        https://notepad-plus-plus.org/downloads/
                                    </a>
                                </p>
                            </div>
                        </div>
                        
                        <div class="flex items-start space-x-4">
                            <div class="step-number">2</div>
                            <div>
                                <h4 class="font-semibold mb-2">选择下载版本</h4>
                                <p class="text-gray-600">看到两个版本：32位和64位。通常情况下，选择64位版本，因为它能够更好地利用现代计算机的性能。</p>
                            </div>
                        </div>
                        
                        <div class="flex items-start space-x-4">
                            <div class="step-number">3</div>
                            <div>
                                <h4 class="font-semibold mb-2">下载安装程序</h4>
                                <p class="text-gray-600">点击所选版本的下载链接，以下载安装程序。</p>
                            </div>
                        </div>
                        
                        <div class="flex items-start space-x-4">
                            <div class="step-number">4</div>
                            <div>
                                <h4 class="font-semibold mb-2">运行安装程序</h4>
                                <p class="text-gray-600">找到下载的安装程序文件（通常是一个<code class="bg-gray-100 px-2 py-1 rounded">.exe</code>文件），双击运行它。</p>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 后续步骤简化展示 -->
                    <div class="quote-box">
                        <p class="text-gray-700">
                            <i class="fas fa-info-circle text-blue-500 mr-2"></i>
                            安装过程中，按照向导提示进行即可。选择默认设置通常就能满足大部分需求。安装完成后，可以在开始菜单或桌面找到 Notepad++ 图标。
                        </p>
                    </div>
                    
                    <div class="text-center mt-8">
                        <img src="https://cdn.nlark.com/yuque/0/2023/png/21449790/1693641636051-7381bf0f-ad4c-4d30-a88b-9f351273e58d.png" 
                             alt="Notepad++ 界面" 
                             class="content-image inline-block">
                    </div>
                </div>
            </div>
        </section>

        <!-- 第一个Java程序 -->
        <section class="mb-16 fade-in">
            <div class="bg-white rounded-2xl shadow-xl p-8 hover-card">
                <h2 class="text-3xl font-bold mb-6 section-title">
                    <i class="fas fa-terminal text-purple-600 mr-3"></i>第一个Java程序
                </h2>
                
                <p class="text-gray-600 mb-8 text-lg">
                    当Java环境已经安装好的前提下，编写一个输出 "Hello, World!" 的Java程序非常简单。让我们一步步来实现：
                </p>
                
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h3 class="text-xl font-semibold mb-4">
                            <i class="fas fa-code text-purple-500 mr-2"></i>编写代码
                        </h3>
                        <div class="code-block">
                            <pre